package com.maycur.taskdemo.task;

import com.maycur.taskdemo.task.util.AbstractBaseTask;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Component;

@Component
@EnableScheduling
public class TestTask extends AbstractBaseTask {
    private final static Logger log = LoggerFactory.getLogger(TestTask.class);
    @Override
    protected String getTaskProperties() {
        return "0/15 * * * * ?";
    }

    @Override
    protected void doTast() {
        log.info("--俺还活着-test...");
    }
}
